<?php
/**
 * Model Traits SchoolTimetable
 * User: zng
 * Date: 2019/11/15
 * Time: 15:08
 */
namespace app\admin\traits\model\order;

Trait Order {

    public function user()
    {
        return $this->belongsTo('\\app\\admin\\model\\user\\User');
    }

    public function userCoupons()
    {
        return $this->belongsTo('\\app\\admin\\model\\user\\UserCoupons', 'coupon_id');
    }

    public function curriculum()
    {
        return $this->belongsTo('\\app\\admin\\model\\curriculum\\Curriculum', 'curriculum_id');
    }

}